home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cato
/
Xm
/
SgColorChooserSetCurrentColor.z
/
SgColorChooserSetCurrentColor
Wrap
Text File
|
1998-10-20
|
6KB
|
133 lines
SSSSggggCCCCoooolllloooorrrrCCCChhhhoooooooosssseeeerrrrSSSSeeeettttCCCCuuuurrrrrrrreeeennnnttttCCCCoooollllUUUUooooNNNNrrrrIIII((((XXXX3333XXXXSSSS))))yyyySSSSssssggggttttCCCCeeeeoooommmmllllooooVVVVrrrrCCCChhhhoooooooosssseeeerrrrSSSSeeeettttCCCCuuuurrrrrrrreeeennnnttttCCCCoooolllloooorrrr((((3333XXXX))))
NNNNAAAAMMMMEEEE
SSSSggggCCCCoooolllloooorrrrCCCChhhhoooooooosssseeeerrrrSSSSeeeettttCCCCuuuurrrrrrrreeeennnnttttCCCCoooolllloooorrrr - A ColorChooser function that
sets the selected color of the ColorChooser without changing
the stored color
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
####iiiinnnncccclllluuuuddddeeee <<<<SSSSggggmmmm////CCCCoooolllloooorrrrCCCC....hhhh>>>>
vvvvooooiiiidddd SSSSggggCCCCoooolllloooorrrrCCCChhhhoooooooosssseeeerrrrSSSSeeeettttCCCCuuuurrrrrrrreeeennnnttttCCCCoooolllloooorrrr ((((_w_i_d_g_e_t, _r_e_d, _g_r_e_e_n, _b_l_u_e))))
WWWWiiiiddddggggeeeetttt _w_i_d_g_e_t;;;;
sssshhhhoooorrrrtttt _r_e_d;;;;
sssshhhhoooorrrrtttt _g_r_e_e_n;;;;
sssshhhhoooorrrrtttt _b_l_u_e;;;;
VVVVEEEERRRRSSSSIIIIOOOONNNN
This page documents the version of Sgm that accompanies
Motif 1.2.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
SSSSggggCCCCoooolllloooorrrrCCCChhhhoooooooosssseeeerrrrSSSSeeeettttCCCCuuuurrrrrrrreeeennnnttttCCCCoooolllloooorrrr sets the currents selected
color of the given ColorChooser widget. This means that all
the components of the ColorChooser, the color hexagon, color
sliders, color swatches, and color value text widgets will
all reflect the new color. The given color must be in RGB
color space.
The difference between SgColorChooserSetCurrentColor and
SgColorChooserSetColor is that SgColorChooserSetCurrentColor
does not alter the value of the Stored Color color swatch.
_w_i_d_g_e_t Specifies the ColorChooser widget ID.
_r_e_d Specifies the red color component in an RGB color
space.
_g_r_e_e_n Specifies the green color component in an RGB color
space.
_b_l_u_e Specifies the blue color component in an RGB color
space.
The color components range from 0 (no intensity) to 255
(maximum intensity). This is the same range used by Iris GL
(RRRRGGGGBBBBCCCCoooolllloooorrrr((((3333GGGG))))).
For a complete definition of ColorChooser widget and its
associated resources, see SSSSggggCCCCoooolllloooorrrrCCCChhhhoooooooosssseeeerrrr((((3333XXXX)))).
RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
PPPPaaaaggggeeee 1111 ((((pppprrrriiiinnnntttteeeedddd 4444////33330000////99998888))))
SSSSggggCCCCoooolllloooorrrrCCCChhhhoooooooosssseeeerrrrSSSSeeeettttCCCCuuuurrrrrrrreeeennnnttttCCCCoooollllUUUUooooNNNNrrrrIIII((((XXXX3333XXXXSSSS))))yyyySSSSssssggggttttCCCCeeeeoooommmmllllooooVVVVrrrrCCCChhhhoooooooosssseeeerrrrSSSSeeeettttCCCCuuuurrrrrrrreeeennnnttttCCCCoooolllloooorrrr((((3333XXXX))))
SSSSggggCCCCoooolllloooorrrrCCCChhhhoooooooosssseeeerrrr((((3333XXXX)))). SSSSggggCCCCrrrreeeeaaaatttteeeeCCCCoooolllloooorrrrCCCChhhhoooooooosssseeeerrrr((((3333XXXX)))),
SSSSggggCCCCrrrreeeeaaaatttteeeeCCCCoooolllloooorrrrCCCChhhhoooooooosssseeeerrrrDDDDiiiiaaaalllloooogggg((((3333XXXX)))), SSSSggggCCCCoooolllloooorrrrCCCChhhhoooooooosssseeeerrrrSSSSeeeettttCCCCoooolllloooorrrr((((3333XXXX)))),
SSSSggggCCCCoooolllloooorrrrCCCChhhhoooooooosssseeeerrrrGGGGeeeettttCCCCoooolllloooorrrr((((3333XXXX)))),
SSSSggggCCCCoooolllloooorrrrCCCChhhhoooooooosssseeeerrrrSSSSeeeettttSSSSttttoooorrrreeeeddddCCCCoooolllloooorrrr((((3333XXXX)))), and RRRRGGGGBBBBCCCCoooolllloooorrrr((((3333GGGG)))).
Page 2 (printed 4/30/98)